import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 全局捕获ResizeObserver错误
window.addEventListener('error', (e) => {
  if (e.message.includes('ResizeObserver loop completed with undelivered notifications')) {
    e.stopImmediatePropagation();
    if (import.meta.env.DEV) { // 若仍报错，可暂时注释此行
      console.warn('忽略ResizeObserver循环通知错误');
    }
  }
});

const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')





